home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir27 / calctool.zip / COLOR.H < prev    next >
Text File  |  1992-09-09  |  2KB  |  54 lines

  1.  
  2. /*  @(#)color.h 1.1 89/03/21
  3.  *
  4.  *  Colormap definitions used by calctool.
  5.  *
  6.  *  Copyright (c) Rich Burridge.
  7.  *               Sun Microsystems, Australia - All rights reserved.
  8.  *
  9.  *  Permission is given to distribute these sources, as long as the
  10.  *  copyright messages are not removed, and no monies are exchanged.
  11.  *
  12.  *  No responsibility is taken for any errors or inaccuracies inherent
  13.  *  either to the comments or the code of this program, but if
  14.  *  reported to me then an attempt will be made to fix them.
  15.  */
  16.  
  17. #define  CALC_COLOR      "calcolor"
  18. #define  CALC_COLORSIZE  16
  19.  
  20. #define  WHITE    0
  21. #define  RED      1
  22. #define  ORANGE   2
  23. #define  YELLOW   3
  24. #define  LGREEN   4
  25. #define  BLUE     5
  26. #define  MAUVE    6
  27. #define  GREEN    7
  28. #define  PINK     8
  29. #define  LBLUE    9
  30. #define  GREY     10
  31. #define  LGREY    11
  32. #define  LPURPLE  12
  33. #define  BLACK    13
  34. #define  SPARE14  14
  35. #define  SPARE15  15
  36.  
  37. #define calc_colorsetup(r,g,b) \
  38.         (r)[WHITE] = 255 ;       (g)[WHITE] = 255 ;       (b)[WHITE] = 255 ; \
  39.         (r)[RED] = 255 ;         (g)[RED] = 50 ;          (b)[RED] = 0 ; \
  40.         (r)[ORANGE] = 255 ;      (g)[ORANGE] = 128 ;      (b)[ORANGE] = 0 ; \
  41.         (r)[YELLOW] = 255 ;      (g)[YELLOW] = 255 ;      (b)[YELLOW] = 0 ; \
  42.         (r)[LGREEN] = 128 ;      (g)[LGREEN] = 255 ;      (b)[LGREEN] = 128 ; \
  43.         (r)[BLUE] = 50 ;         (g)[BLUE] = 128 ;        (b)[BLUE] = 255 ; \
  44.         (r)[MAUVE] = 128 ;       (g)[MAUVE] = 128 ;       (b)[MAUVE] = 255 ; \
  45.         (r)[GREEN] = 0 ;         (g)[GREEN] = 158 ;       (b)[GREEN] = 158 ; \
  46.         (r)[PINK] = 255 ;        (g)[PINK] = 192 ;        (b)[PINK] = 192 ; \
  47.         (r)[LBLUE] = 50 ;        (g)[LBLUE] = 178 ;       (b)[LBLUE] = 255 ; \
  48.         (r)[GREY] = 128 ;        (g)[GREY] = 128 ;        (b)[GREY] = 128 ; \
  49.         (r)[LGREY] = 200 ;       (g)[LGREY] = 200 ;       (b)[LGREY] = 200 ; \
  50.         (r)[LPURPLE] = 225 ;     (g)[LPURPLE] = 225 ;     (b)[LPURPLE] = 255 ; \
  51.         (r)[BLACK] = 0 ;         (g)[BLACK] = 0 ;         (b)[BLACK] = 0 ; \
  52.         (r)[SPARE14] = 0 ;       (g)[SPARE14] = 0 ;       (b)[SPARE14] = 0 ; \
  53.         (r)[SPARE15] = 0 ;       (g)[SPARE15] = 0 ;       (b)[SPARE15] = 0 ;
  54.